home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hráč 2004 August
/
Hrac_72_2004-08_dvd.iso
/
dema
/
Rapid Gun
/
rg_setup.exe
/
common
/
phase_opaque.fx
< prev
next >
Wrap
Text File
|
2004-04-19
|
2KB
|
68 lines
// LF2 Engine
// (C) 2002-3 7FX
//---------------------------------------------------------------------------
// Desc
string desc : Description = "Phase shader, ktery definuje render states pro nepruhledne meshe.";
// vertex format - only if needed
string vf : VertexFormat = "POSITION";
// Shader type phase
string type : Type = "phase";
//---------------------------------------------------------------------------
// Matrices for fixed function technique
// const matrix cMtxW : World;
//---------------------------------------------------------------------------
technique phase_opaque
{
// Only one pass
pass p0
<
bool Drawable = false;
//string SortType = "FrontToBack";
string SortType = "MaterialFrontToBack";
>
{
// empty - render states are set in global effect
}
}
//---------------------------------------------------------------------------
// tato technique kresli nejprve do hloubky a pak normalne (spatne vykresluje ostrou alfu)
/*technique phase_opaque
<
// streams for technique
string stream1 = "POSITION";
>
{
// render depth
pass p0
<
bool Drawable = true;
string streammap = "stream1";
//string SortType = "FrontToBack";
//string SortType = "MaterialFrontToBack";
>
{
// matrices needed for drawing
WorldTransform[0] = <cMtxW>;
ColorWriteEnable = 0x00000000;
ZEnable = true;
ZWriteEnable = true;
ZFunc = LESSEQUAL;
}
// render mesh
pass p1
<
bool Drawable = false;
//string SortType = "FrontToBack";
string SortType = "MaterialFrontToBack";
>
{
ColorWriteEnable = 0x0000000F;
ZWriteEnable = false;
ZFunc = EQUAL;
}
}*/